#include "B.hpp"
__global__ void foo (void) {

  g[threadIdx.x] = (float)threadIdx.x ;

  bar2();
}

__device__ void bar2 (void)
{
  g[threadIdx.x] =g[threadIdx.x]+1.0 ;
  bar1();
}

